package com.jbit.controller;

import com.jbit.service.DmAreaService;
import com.jbit.utils.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RequestMapping("/base/api/p/area")
@RestController
public class BaseAreaController {
    @Resource
    private DmAreaService dmAreaService;

    @PostMapping("/queryCityList")
    public ResponseEntity queryCityList() {
        return ResponseEntity.sendSuccess(dmAreaService.queryAll());
    }
}
